#include "mini2440Videowidget.h"

videowidget::videowidget(QWidget *parent) :
    QWidget(parent)
{
    setAutoFillBackground(true);
}

void videowidget::paintEvent(QPaintEvent *event) {
     try{
    QPainter painter(this);
    if(!img.isNull()){
        painter.drawImage(QPoint(0,0), img);
    }
    }catch(...){}
}
